{template 'admin','header'}
<table cellpadding="0" cellspacing="1" class="table_list">
    <caption>工作流方案管理</caption>
    <tr>
        <td class="align_l">
            <a href="{$self_url}?action=workflow_add"><font color="red">添加工作流方案</font></a>
        </td>
    </tr>
</table>
<table cellpadding="0" cellspacing="1" class="table_list">
    <caption>工作流方案列表</caption>
    <tr>
        <th width="60">ID</th>
        <th width="100">方案名称</th>
        <th>方案描述</th>
        <th width="220">管理操作</th>
    </tr>
    {loop $data $r}
    <tr>
        <td class="align_c">{$r['id']}</td>
        <td class="align_c">{$r['name']}</td>
        <td>{$r['description']}</td>
        <td class="align_c">
            <a href="{$self_url}?action=process_list&workflowid={$r['id']}">管理步骤</a>&nbsp;|&nbsp;
            <a href="{$self_url}?action=workflow_edit&id={$r['id']}">修改</a>&nbsp;|&nbsp;
            <a href="javascript:void(0)" onclick="my_request('{format_url("$self_url?action=workflow_delete&id=".$r['id'])}','确定要删除该方案吗？')">删除</a>
        </td>
    </tr>
    {/loop}
</table>
{template 'admin','footer'}